public class Game {
	
	private boolean gameFinished = false;
	
	private Player[] players = new Player[4];
	
	public Game() {

		int gridSize = Grid.gridSize;
		
		int player1StartPos = 0;
		int player2StartPos = gridSize - 5;
		int player3StartPos = 2 * player2StartPos;
		int player4StartPos = 3 * player2StartPos + 1;
		
		int player1FinalPos = GameLogic.getPathLen() + 3;
		int player2FinalPos = player1FinalPos + 4;
		int player3FinalPos = player2FinalPos + 4;
		int player4FinalPos = player3FinalPos + 4;	

		players[0] = new Player("red", player1StartPos, player1FinalPos, 0);
		players[1] = new Player("green", player2StartPos, player2FinalPos, 1);
		players[2] = new Player("blue", player3StartPos, player3FinalPos, 2);
		players[3] = new Player("yellow", player4StartPos, player4FinalPos, 3);
	}
	
	/**
	 * @return the gameFinished
	 */
	public boolean isGameFinished() {
		return gameFinished;
	}

	/**
	 * @param gameFinished the gameFinished to set
	 */
	public void setGameFinished(boolean gameFinished) {
		this.gameFinished = gameFinished;
	}

	/**
	 * @return the players
	 */
	public Player[] getPlayers() {
		return players;
	}

	/**
	 * @param players the players to set
	 */
	public void setPlayers(Player[] players) {
		this.players = players;
	}

}
